<div class="mask-box">
  <%= form_for(@fixed_cost, :url => admin_fixed_cost_path(@fixed_cost), method: :patch, remote:true)  do |f|%>
    <div class="mask-head">
      <h4>编辑</h4>
      <span></span>
    </div>
    <div class="mask-con">
      <div class="mask-marc">
        <ul>
          <li>
            <span>成本名称:</span> <%= f.text_field :name %>
        </li>
        <li class="fina-cost">
          <span>成本分店:</span>
          <input type="text" name="studio_ids" id="fixed_cost_studio_ids" value="<%= @studio_ids.join(",") %>" />
          <div class="multiselect-box">
            <div class="mul-downbtn">
              <em></em>
              <input type="text" placeholder="搜索">
            </div>
            <div class="multiselect-down">
              <ul>
                <% @studios.each do |studio| %>
                  <li class="<%= @studio_ids.include?(studio.id) ? "mul-select" : "" %>">
                    <span></span>
                    <strong data_id="<%= studio.id %>"><%= studio.name %></strong>
                  </li>
                <%end%>
              </ul>
              <div class="mul-btn clearfix">
                <div class="mul-confirm">确认</div>
                <div class="mul-cancel">取消</div>
              </div>
            </div>
          </div>
        </li>
        <li>
          <span>成本费用:</span>
          <%= f.text_field :amount %>
          <em>元</em>
        </li>
        <li>
          <span>成本周期:</span>
          <%= f.text_field :cycle %>
          <em>月</em>
        </li>
        <li class="fina-message">
          <span id="message"></span>
        </li>
        </ul>
      </div>
    </div>
    <div ><%= f.submit '确认', :class => "mask-confirm" %></div>
  <%end%>
</div>
